package com.qcby.shujia.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @className: user
 * @description: 用户实体类
 * @author: whz
 * @date: 2021/9/19
 **/
@ApiModel("用户实体")
public class User {
    @ApiModelProperty(value = "用户id")
    private Integer id;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "用户密码")
    private String password;
    @ApiModelProperty(value = "令牌")
    private String token;
    //权限字段信息
    @ApiModelProperty(value = "权限字符串集合")
    private List<String> authStrList;

    public List<String> getAuthStrList() {
        return authStrList;
    }

    public void setAuthStrList(List<String> authStrList) {
        this.authStrList = authStrList;
    }



    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "user{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
